package com.heima.tuozhan.day01.Car;

public class Aodi extends Car {
    public Aodi() {
    }

    public Aodi(int luntai, String color, double weight, int speed) {
        super(luntai, color, weight, speed);
    }

    @Override
    void jiasu() {
        setSpeed(getSpeed()+20);
    }

    @Override
    void jiansu() {
        setSpeed(getSpeed()-20);
    }
}
